<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title><?php echo "back manager"?></title>
<meta name="description"
	content="Administry - Admin Template by www.865171.cn" />
<meta name="keywords" content="Admin,Template" />
<!-- We need to emulate IE7 only when we are to use excanvas -->
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<![endif]-->
<!-- Favicons -->
<link rel="shortcut icon" type="image/png"
	href="<?php echo Yii::app()->theme->baseUrl?>/img/favicons/favicon.png" />
<link rel="icon" type="image/png"
	href="<?php echo Yii::app()->theme->baseUrl?>/img/favicons/favicon.png" />
<link rel="apple-touch-icon"
	href="<?php echo Yii::app()->theme->baseUrl?>/img/favicons/apple.png" />
<!-- Main Stylesheet -->
<link rel="stylesheet"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/css/style.css"
	type="text/css" />
<!-- Colour Schemes
Default colour scheme is blue. Uncomment prefered stylesheet to use it.
<link rel="stylesheet" href="css/brown.css" type="text/css" media="screen" />  
<link rel="stylesheet" href="css/gray.css" type="text/css" media="screen" />  
<link rel="stylesheet" href="css/green.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/pink.css" type="text/css" media="screen" />  
<link rel="stylesheet" href="css/red.css" type="text/css" media="screen" />
-->
<!-- Your Custom Stylesheet -->
<link rel="stylesheet"
	href="<?php echo Yii::app()->theme->baseUrl?>/manager/css/custom.css"
	type="text/css" />

</head>
<body>
	<!-- Header -->
	<header id="top">
	<div class="wrapper">
		<!-- Title/Logo - can use text instead of image -->
		<div id="title">
			<img
				src="<?php echo Yii::app()->theme->baseUrl?>/manager/img/logo.png"
				alt="Administry" />
			<!--<span>Administry</span> demo-->
		</div>
		<!-- Top navigation -->
		<?php if(!Yii::app()->user->isGuest):?>

		<div id="topnav">
			<a href="#"><img class="avatar"
				src="<?php echo Yii::app()->theme->baseUrl?>/manager/img/user_32.png"
				alt="" /> </a> Logged in as <b><?php echo Yii::app()->user->name;?>
			</b> <span>|</span> <a
				href="<?php echo $this->createUrl('user/update',array('id'=>Yii::app()->user->id));?>">Settings</a>
			<span>|</span> <a
				href="<?php echo $this->createUrl('default/logout');?>">Logout</a><br />
			<small>You have <a href="#" class="high"><b>1</b> new message!</a> </small>
		</div>
		<?php endif;?>
		<!-- End of Top navigation -->
		<!-- Main navigation -->
		<nav id="menu"> <?php $this->widget('zii.widgets.CMenu',array(
                        'items'=>array(
		array('label'=>'控制面板', 'url'=>array('default/index')),
		array('label'=>'Styles', 'url'=>array('javascript://'),'items'=>array(
		array('label'=>'New Arrivals', 'url'=>array('product/new', 'tag'=>'new')),
		array('label'=>'Most Popular', 'url'=>array('product/index', 'tag'=>'popular')),
		),),
		array('label'=>'文章管理', 'url'=>'javascript://','items'=>array(
		array('label'=>'文章分类', 'url'=>array('articlecategory/index')),
		array('label'=>'星座文章', 'url'=>array('article/index')),
		array('label'=>'星运文章', 'url'=>array('product/index', 'tag'=>'popular')),
		),'active'=>true,'activeClass'=>'current',
		),
		array('label'=>'微博管理', 'url'=>array('microblog/index')),
		array('label'=>'系统统计', 'url'=>array('microblog/index')),
		array('label'=>'用户设置', 'url'=>array('user/index')),
		array('label'=>'系统设置', 'url'=>array('croninfo/index')),
			
		),
                        'htmlOptions'=>array('class'=>'sf-menu'),
		)); ?> </nav>
		<!-- End of Main navigation -->
		<!-- Aside links -->
		<!-- End of Aside links -->
	</div>
	</header>
	<!-- End of Header -->
	<!-- Page title -->
	<div id="pagetitle">
		<div class="wrapper">
			<h1>
			<?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
                    'links'=>$this->breadcrumbs,
			)); ?>
				<!-- breadcrumbs -->
			<?php endif?>
			</h1>
		</div>
	</div>
	<!-- End of Page title -->
	<!-- Page content -->
	<div id="page">
	<?php echo $content; ?>
	</div>
	<!-- page -->

	<!-- Admin template javascript load -->
	<script type="text/javascript"
		src="<?php echo Yii::app()->theme->baseUrl?>/manager/js/administry.js"></script>
</body>
</html>
